package com.example.supplychainbackend.dao.logistic;

import com.example.supplychainbackend.entity.logistic.DomesticLogisticEntity;
import org.springframework.data.jpa.repository.JpaRepository;

public interface DomesticLogisticDao extends JpaRepository<DomesticLogisticEntity, String> {
    DomesticLogisticEntity findByTrackingNumber(String trackingNumber);
    Long deleteByTrackingNumber(String trackingNumber);

    boolean existsByTrackingNumber(String trackingNumber);
}

